-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for PostgreSQL #21
Conversation
… developer dependencies
Pin project dependencies to a set known to work using package-lock.json.
Support loading mappings from PostgreSQL via the `pg-native` library.
galaxyproject/galaxy#18481 got merged, this PR would be the next step. From Git blame, it looks like the original maintainer was @jmchilton. @jmchilton are you still a contact person for this repository? Who should I contact otherwise? |
lib/mapper.js
Outdated
var postgresClient = require("pg-native"); | ||
var watchFile = require("node-watch"); | ||
|
||
var startsWith = function (subjectString, searchString) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we re-implementing startsWith and endsWith ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nonsense, I agree. Changed to built-in JavaScript methods in 80183d2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, seems fine to me.
…n String prototype
@mvdbeek Sorry for not answering earlier, I was out of office. Thanks for the review. I do not have permission to merge PRs to this repository. Could you merge it, then #22 to bump the version number and finally create a new tag |
Thanks @natefoo! |
Support loading mappings from PostgreSQL via the
pg-native
library. A major problem was that the proxy works watching files for changes (SQLite or JSON files). With PostgreSQL this is not possible, so I resorted to polling at regular intervals (configurable via the new--pollingInterval
command line option) and PostgreSQL asynchronous notifications. See the new functionwatchPostgres
and new section of the README for more details.As a side effect, running the proxy requires nodejs v14 now. I have also included a package-lock.json file and version specifiers for
axios
,axios-retry
,chai
andmocha
.This feature is meant to work in conjunction with galaxyproject/galaxy#18481.